package day003.homewordk;

public class Practice001 {
    public static void main(String[] args) {
        int res = 0;
        for (int i = 1; i <= 10; i++) {
            if (i % 3 == 0) {
                continue;
            } else {
                res += i;
            }
        }
        System.out.println("The sum of all numbers is: " + res);

        res = 0;
        int i = 1;
        while (i < 11) {
            if (i % 3 == 0) {
                i++;
                continue;
            } else {
                res += i;
            }
            i++;
        }
        System.out.println("The sum of all numbers is: " + res);
    }
}
